﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Logging;
using System.Diagnostics;

namespace CMS.Logging
{
    /// <summary>
    /// Logging File
    /// </summary>
    public class Logging
    {
        public struct Priority
        {
            public const int Lowest = 0;
            public const int Low = 1;
            public const int Normal = 2;
            public const int High = 3;
            public const int Highest = 4;
        }
        public struct Category
        {
            public const string Error = "Error";
            public const string Warning = "Warning";
            public const string Information = "Information";
        }
        public static void LogWrite(string message, string category, int priority)
        {  
            LogEntry log=new LogEntry();
            Logger.Write(message, category, priority);
        }
    }
}
